<?php
class PictureModel extends AdvModel
{
	// 自动填充规则
	var $_auto = array(
		array("uploadtime","time",1,"function"),
	);

	// 自动校验规则
	var $_validate = array(
		array('title','require','标题不能为空',0,'',3),
		array('desc','require','信息摘要不能为空',0,'',3),
		array('url','require','图片不能为空',0,'',3),
	);
}
?>